package Dao;

import entity.VerificationCode;

import java.sql.SQLException;

/**
 * @Author Su
 * @Date 2025/4/30 10:18
 * @Version 1.0 （版本号）
 */
public interface VerificationCodeDAO {

    boolean insertCode(VerificationCode code) throws SQLException;
    VerificationCode getValidCode(String email, String code, String type) throws SQLException;
    void deleteExpiredCodes() throws SQLException;
}
